import json
import math
import random
import string
from math import*
from string import*
from tkinter.messagebox import showinfo

import matplotlib.pyplot as plt
from keras_preprocessing.text import maketrans

'''#-------------------------------#
name = int(input( ))
age = int(input( ))
job = int(input( ))
print(f'{name} {age:02d} {job}')
#'''
'''#-------------------------------#
from math import*
a=float(input())
b=float(input())
c=sqrt(2*a*sin(60/180*pi)*cos(60/180*pi))
x=(-b+c)/(2*a)
print(f'{x:.2f}')
#'''
'''#-------------------------------#
a=float(input())
b=float(input())
c=float(input())
print(f'{((-b+(b**2-4*a*c)**0.5)/(2*a)):.2f}')
#'''
'''#-------------------------------#
a=eval(input())
b=eval(input())
c=eval(input())
print(f'{}')
#'''
'''#-------------------------------#
a=eval(input())
b=eval(input())
c=eval(input())
if a**2+b**2==c**2 or c**2+b**2==a**2 or c**2+a**2==b**2:
    print('YES')
else:
    print('NO')

#'''
'''#-------------------------------#



#'''
'''#-------------------------------#
a=eval(input())
b=eval(input())
c=eval(input())
C=a+b+c
s=C/2
if a<=0 or b<=0 or c<=0:
    print('NO')
elif a+b>c or c+b>a or c+a>b:
    print('YES')
    print(f'{(s * (s - a) * (s - b) * (s - c)) ** 0.5:.2f}')
else:
    print('NO')
#'''
'''#-------------------------------#

a=eval(input())
b=eval(input())
c=input()
if c=='男':
    print(f'{round((a+b)*1.08/2,-1)}')
else:
    print(f'{round((a*0.923+b)/2,-1)}')
#'''
'''#-------------------------------#
a=eval(input())
b=eval(input())
c=input()
if c=='女':
    print(f'{((a*0.923+b)//2):.0f}')
elif c=='男':
    print(f'{((a+b)*1.08//2):.0f}')
else:
    print('无对应公式')
#'''
''''#-------------------------------#
def tax(a):
    if a<0:
        return -1
    if a<=5000:
        return 0
    tr=[3,10,20,25,30,35,45]
    qc=[0,210,1410,2660,4410,7160,15160]
    x = a - 5000
    l=0
    if x > 3000:
        l=l+1
    if x > 12000:
        l=l+1
    if x > 25000:
        l = l + 1
    if x>35000:
        l=l+1
    if x>55000:
        l=l+1
    if x>80000:
        l=l+1
    return x*tr[l]/100-qc[l]
a=eval(input())
tax=tax(a)
if tax<0:
    print('error')
else:
    print(f'应缴税款{tax:.2f}元，实发工资{(a-tax):.2f}元。')

#'''
'''#-------------------------------#
a = eval(input())
print((a % 4 == 0 and a % 100 != 0) or (a % 400 == 0))
#'''
'''#-------------------------------#
x=int(input())
if -6<=x<0:
    print(abs(x)+5)
elif x==1 or x==0:
    print(1)
elif x==2:
    print(2)
elif 3<=x<=6:
    print(x**(x-2))
else:
    print(0)
#'''
'''#-------------------------------#
st="EEEEEEDCBAA"
s=eval(input())
if s<0 or s>100:
    print("data error!")
else:
    print(st[int(s//10)])
#'''
''''# -------------------------------#
a=int(input())
item=1
u=1
l=1
sign=1
sum=0
for i in range(1,a+1):
    sum += sign * item
    item=i/(u+l)
    u,l=l,u+l
    sign *= -1
print('{:.6f}'.format(sum))
#'''
'''#-------------------------------#
n=int(input())
sm=0
for i in range(1,n+1):
    sm+=i**2
print(sm)
#'''
'''#-------------------------------#

#'''
'''#-------------------------------#
# 请补充你的代码
rt=0
for rt in range(0,13,4):
	hn = (100 - 7 * rt) // 4
	print("{} {} {}".format(rt, hn, 100 - rt - hn))
#'''
'''#-------------------------------#
i=0
while i<3:
    a=input()
    b=input()
    if (a=='admin'or a=='administrator') and b=='012345':
        print('登录成功')
        break
    else:
        print('登录失败')
        i+=1
#'''
'''#-------------------------------#
# 获取输入并按空格分割成列表
input_values = input().split()                                     #法一：学习如何读取一行中的数据
# 将列表中的每个元素转换为整数
h = int(input_values[0])
l = int(input_values[1])
# 遍历可能的鸡的数量
for c in range(0, h + 1):
    r = h - c
    if c * 2 + r * 4 == l:
        print(f'有{c}只鸡，{r}只兔')
        break
else:
    print('Data Error!')
#'''
'''#-------------------------------#

def year(c):
    if c%4==0:
        if c%100==0 and c%400!=0:
            return 0
        else:
            return 1
    else:
        return 0
sm=0
a, b, c = map(int, input().split("/"))                             #法二：学习如何读取一行中的数据
month=[0,31,28,31,30,31,30,31,31,30,31,30,31]
for i in range(1,b):
    sm+=month[i]
if b>2:
    sm+=year(a)
print(f'{a}年{b}月{c}日是{a}年第{sm+c}天')

#'''
'''#-------------------------------#
n=int(input())
flag=0
for i in range(0,n+1):
    if i%3==2 and i%5==3 and i%7==2:
        print(i)
        flag=1
if flag==0:
    print('No solution!')

#'''
'''#-------------------------------#
w=int(input())
b=1
l=1
day=0
sb=b
sl=l
while 1:
    day += 1
    if sb+sl>=w:
        break
    else:
        b*=2
        l/=2
        sb+=b
        sl+=l
print(day)
if w==2:
    print("1 1")
elif sb+sl==w:
    print(f'{sl:.1f} {sb}')
else:
    sb-=b
    sl-=l
    lv=w-sb-sl
    sb+=lv/(l+b)*b
    sl=w-sb
    print(f'{sl:.1f} {sb:.1f}')
#'''
'''#-------------------------------#
a=int(input())
print("你本学期选修了17个学分。")
print("你应缴纳的学费为{17*a}元。")


#'''
'''#-------------------------------#
print(f'请输入每学分学费金额:',end='')
a=int(input())
print(f'请输入你每个月生活费:',end='')
b=int(input())
total_cost = b * 5 + a*17
student_loan = total_cost * 0.6
print(f'本学期你能够贷款{student_loan:.2f}元。')#'''
'''#-------------------------------#
a=eval(input())
b=eval(input())
print(f'{((a/2)**2+b**2)/(2*b):.2f}')

#'''
'''#-------------------------------#
a=eval(input())
b=eval(input())
r=((a/2)**2+b**2)/(2*b)
A=2*asin(a/2/r)
S=A*(r**2)/2
S2=0.5*(r**2)*sin(A)
print(f'{(S-S2):.2f}')

#'''
'''#-------------------------------#

r=6371*(10**3)
S=4*pi*r**2
V=4*pi*r**3/3
L=2*pi*r
R=(L+1)/(2*pi)
o=R-r
print(f'地球表面积为{S:.2f}平方米')
print(f'地球体积为{V:.2f}立方米')
print(f'地球赤道周长为{L:.2f}米')
print(f'空隙大小为{o:.2f}米')
if o>0.1:
    print('老鼠可以从空隙中钻过')
else:
    print('老鼠无法通过空隙')

#'''
'''#-------------------------------#     学习
a=8                      # 整数8
print(f'{a:05}')         # 参数为数字时默认右对齐00008
print(f'{a:>05}')        # 用>表示右对齐00008
print(f'{a:<05}')        # 用<表示左对齐80000
print('{:05}'.format(a)) # 00008
a='8'              # 字符串'8'
print(f'{a:05}')   # 参数为字符串时默认左对齐80000
print(f'{a:>05}')  # 用>表示右对齐00008
print(f'{a:<05}')  # 用<表示左对齐80000

#'''
'''#-------------------------------#
a=int(input())
b=int(input())
c=int(input())
print(f'{a:02}:{b:02}:{c:02}')
print(f'距离午夜还剩余{(23-a)*3600+(59-b)*60+(60-c)}秒')
#'''
'''#-------------------------------#
a,b=map(int,input().split(':'))
if 11>=a>=8 or (a==12 and b<=20):
    print("早课")
elif 14<=a<=17 or (a==18 and b<=20):
    print('中课')
elif 20>=a>=19 or (a==21 and b<=25):
    print('晚课')
else:
    print('休息')


#'''
''''#-------------------------------#
a=eval(input())
b=eval(input())
if b==0:
    print('除零错误')
else:
    print(f'{(a/b):.2f}')

#'''
''''#-------------------------------#
for i in range(1,9):
    print(3*i)

#'''
'''#-------------------------------#
a=int(input())
i=0
while a!=1:
    if a != int(a) or a<=0:
        print('ERROR')
        exit()
    print(a,end=' ')
    if a%2==0:
        a//=2
    else:
        a=a*3+1
    i+=1
print(1)
print(i)

#'''
'''#-------------------------------#
from math import*
def f(x):
    return x**5-15*x**4+85*x**3-225*x**2+274*x-121
a=int(input())
q=10**(-a)
m=1.5
n=2.4
while 1:

    c=(m+n)/2
    y=f(c)
    if abs(y)<q:
        print(f'{c:.6f}')
        break
    else:
        if y<0:
            n=c
        else:
            m=c


#'''
'''''#-------------------------------#
def print_hi_human():
    print('人类，你好！')
    return
print_hi_human()

#'''
''''#-------------------------------#
def say_hi_person(a,b):
    if b=='男':
        b='先生'
    else:
        b='女士'
    print(f'尊敬的{a}{b}，欢迎来到火星！')
    return
a=input()
b=input()
say_hi_person(a,b)
#'''
'''''#-------------------------------#
def print_hi_human(*a):
    for i in a:
        print(f'{i}，你好！')
    return
print_hi_human('孟浩然','杜甫',"李白",'柳宗元','李商隐')


#'''
'''#-------------------------------#
def ppow(a,b):
    print(float(a**b))
    return
a=eval(input())
b=eval(input())
ppow(a,b)
#'''
'''''#-------------------------------#
def fabs(a):
     print(a if a>=0 else -a)
     return
a=float(input())
fabs(a)
#'''
''''#-------------------------------#
def car(a,b,c='宝马'):
    print(f'这是一辆{a}年生产，型号是{b}的{c}牌汽车。')
input_values = input().split()                                     #法一：学习如何读取一行中的数据
# 将列表中的每个元素转换为整数
car(*input_values)



#'''
'''''#-------------------------------#
def a(x):
    for i in range(1,x+1):
        n=i
        while n:
            m=n%10
            n=n//10
            if m==0 or i%m!=0:
                break
        else:
            print(i,end=' ')
a(int(input()))

#'''
''''#-------------------------------#
def sq(n,e):
    l=0
    b=n+0.25
    while 1:
        m=(l+b)/2
        if(abs(m**2-n)<=e):
            return m
        else:
            if m**2>n:
                b=m
            else:
                l=m
a,b=input().split(',')
a=float(a)
b=float(b)
print(f'{sq(a, b):.8f}')
print(f'{sqrt(a):.8f}')
#'''
''''#-------------------------------#
a,b=map(int,input().split(','))
f=13
if a>3:
    a-=3
    if a<12:
        f+=a*2.3
    else:
        f+=12*2.3
        a-=12
        f+=a*2.3*1.5
print(int(round(f+b,0)))

#'''
'''''#-------------------------------#
sm=0
a=int(input())
for i in range(1,a+1):
    sm+=i**2
print(sm)

#'''
'''''#-------------------------------#
a=int(input())-1
sm=1
f=0
s=0
t=1
while a:
    sm+=f
    s=t
    t=f
    f+=s
    a-=1
print(f'{sm} {(sm-f+s)/sm:.3f}')
#'''
'''''#-------------------------------#
a=float(input())
item=1
sep=1
sm=0
down=1
while item>a:
    sm+=item*sep
    sep*=-1
    down+=2
    item=1/down
print(f'{4 * sm:.8f}')

#'''
'''''#-------------------------------#
a=int(input())
sm=0
for i in range(0,a):
    sm+=factorial(4*i)*(1103+26390*i)/((factorial(i)**4)*396**(4*i))
print(f'{9801/(2*2**0.5*sm)}')
#'''
'''''#-------------------------------#
from math import*
def su(a):
    if a<=2:
        return a==2
    if(a%2==0):
        return 0
    sa=int(sqrt(a))
    for i in range(3,sa+1):
        if a%i==0:
            return 0
    return 1

a=int(input())
while(a):
    if su(a):
        print(a)
        break
    a-=1

#'''
''''#-------------------------------#
from math import*
def su(a):
    if a<=2:
        return a==2
    if(a%2==0):
        return 0
    sa=int(sqrt(a))
    for i in range(3,sa+1):
        if a%i==0:
            return 0
    return 1

a=int(input())
for i in range(2,a+1):
    if su(i):
        print(i,end=' ')

#'''
'''#-------------------------------#哥德巴赫猜想
from math import*
def is_prime(a):
    if a<=2:
        return a==2
    if a%2==0:
        return 0
    sa=int(sqrt(a))
    for i in range(3,sa+1):
        if a%i==0:
            return 0
    return 1

def goldbach_conjecture(n):
    if n%2!=0:
        print('Data error!')
        return
    if n==4:
        print('4=2+2')
    else:
        hf=n//2
        for i in range(3,hf):
            if is_prime(i) and is_prime(n-i):
                print(f'{n}={i}+{n-i}')



    """接收一个正整数参数number，遍历从0到number之间的所有整数，
    若某个数是素数，且转为字符串后是回文字符串，则称其中回文素数
    找出并在同一行中输出小于number的所有回文素数，每个数字后一个空格，函数无返回值。"""
    #======================Begin=================================
    # 补充你的代码
    #=========================End==============================


a = int(input())
goldbach_conjecture(a)

#'''
'''''#-------------------------------#
def is_leap(c):
    if c%4==0:
        if c%100==0 and c%400!=0:
            return 0
        else:
            return 1
    else:
        return 0
def days_of_month(dst):
    d=[0,31,28,31,30,31,30,31,31,30,31,30,31]
    y=int(dst[:4])
    m=int(dst[4:6])
    if m==2 and is_leap(y):
        print(29)
        return
    print(d[m])
dst=input()
days_of_month(dst)
#'''
'''''#-------------------------------#华氏度转摄氏度速
def F2C(f1,f2):
    if f1>f2:
        print('error')
    else:
        for i in range(f1,f2,2):
            print(f'{i} : {5*(i-32)/9:.2f}')
f1,f2=map(int,input().split(','))
F2C(f1,f2)

#'''
'''''#-------------------------------#
a=input()
b=len(a)
os=0
es=0
for i in range(0,b):
    c=int(a[i])
    if c%2==0:
        es+=c
    else:
        os+=c
print(f'oddsum={os},evensum={es}')


#'''
'''#-------------------------------#
a=input()
b=len(a)
for i in range(0,b):
    if  a[i] not in string.ascii_letters:
        print('ERROR')
        exit()
c=input()
for i in range(0,b):
    if  a[i] not in c:
        print('NOT FOUND')
        break
else:
    print('FOUND')





#'''
'''''#-------------------------------#
def su(n):
    if n<2:
        return n==2
    if n%2==0:
        return 0
    else:
        sn=int(sqrt(n))
        for i in range(3,sn+1,2):
            if n%i==0:
                return 0
        return 1
a=int(input())
if a>0:
    print('2',end=' ')
i=0
j=3
while i<a-1:
    if su(j):
        b=str(j)
        if b==b[::-1]:
            print(b,end=' ')
            i += 1
    j+=2


#'''
'''#-------------------------------#反素数
def su(n):
    if n<2:
        return n==2
    if n%2==0:
        return 0
    else:
        sn=int(sqrt(n))
        for i in range(3,sn+1,2):
            if n%i==0:
                return 0
        return 1
a=int(input())
i=0
j=3
while i<a:
    if su(j):
        b=str(j)
        if b!=b[::-1]:
            b=int(b[::-1])
            if su(b):
                print(j,end=' ')
                i += 1
    j+=2

#'''
'''''#--------------------------
a=input()
c=eval(input())
if c<0:
    print('Data error!')
    exit()
b=a[-1]
d=eval(a[:-1])
if b=='$':
    print(f'{c*d:.2f}¥')
elif b=='¥':
    print(f'{d/c:.2f}$')
else:
    print('Data error!')
#'''
'''''#-------------------------------#
a,b,c,d,e=input().split()
e.find(string.digits)
print('姓名：'+b)
print('班级：'+c)
i=0
while i< len(e):
    f=e[0+i:4+i]
    if f.isdigit():
        print('出生：' + f+'年')
        break
    i+=1




#'''
'''#-------------------------------#
a=input()
b=int(input())
if len(a)!=1 or a=='0':
    print('data error')
    exit()
if b<0:
    print('data error')
    exit()
i=0
sm=0
item=a
while i<b:
    sm+=int(item)
    item+=a
    i+=1
print(sm)


#'''
'''''#-------------------------------#
a='B C E F G H J K M P Q R T V W X Y 2 3 4 6 7 8 9'.split()
#a='B C E F G H J K M P Q R T V W X Y 2 3 4 6 7 8 9'.replace(' ','')
ns=int(input())
sd=int(input())
random.seed(sd)
for i in range(ns):
    st = ''
    for j in range(5):
        if j>0:
            st+='-'
        for k in range(5):
            st+=random.choice(a)
    print(st)


#'''
'''''#-------------------------------#
a=input()
if len(a)!=8:
    print('Data Error!')
    exit()
if a[:3]!='鄂A-':
    print('Data Error!')
    exit()
b=a[3:]
ret=0
ct=0
for i in b:
    if i.isdigit():
        ret=int(i)%2
    elif i.isupper():
        if i=='O'or i=='I':
            print('Data Error!')
            exit()
        else:
            ct+=1
    else:
        print('Data Error!')
        exit()
if ct>2:
    print('Data Error!')
    exit()
c='单号通行'if ret else '双号通行'
print(c)

#'''
'''#-------------------------------#
a=input()
b=""
for i in range(0,len(a)):
    if a[i].isupper():
        b+=a[i].lower()
    elif a[i].islower():
        b+=a[i].upper()
    else:
        b+=a[i]
print(b)

#'''
'''#-------------------------------#
a,b=map(int,input().split(","))
random.seed(b)
c='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\\()*+,-.'
d=''
for i in range(a):
    d+=random.choice(c)
print(d)
#'''
'''''#-------------------------------#
n=int(input())
li=[]
for i in range(n):
    c=input()
    if c[:6]=="insert":
        if c[:6] == "insert":
            a, b = map(int, c[7:].split())             #s本题目难点与关键点
            li.insert(a, b)
    elif c[0]=='p':
        print(li)
    elif c[:3]=='rem':
        li.remove(int(c[7:]))
    elif c[0]=='a':
        li.append(int(c[7:]))
    elif c[0]=='s':
        li.sort()
    elif c[:3] == "pop":
        li.pop()
    elif c[:3]=='rev':
        li.reverse()

"1 0 X 9 8 7 6 5 4 3 2"


#'''
'''''#-------------------------------#
a=int(input())
for i in range(6,a+1):
    for j in range(2,i+1):
        for k in range(j,i+1):
            for m in range(k,i+1):
                if i**3==j**3+k**3+m**3:
                    print(f'Cube = {i},Triple = ({j},{k},{m})')

#'''
'''''#-------------------------------#
c=int(input())
a=int(c[1:])
print(a)
#'''
'''#-------------------------------#
a=[('dungeon',7),('winterfell',4),('bran',9),('meelo',6)]
b=[[ 'Angle', '0121701100106',99], [ 'Jack', '0121701100107',86], [ 'Tom', '0121701100109',65], [ 'Smith', '0121701100111', 100], ['Bob', '0121701100115',77], ['Lily', '0121701100117', 59]]
a.sort(key=lambda for c in a:b[2])
print(a)
#'''
'''''#-------------------------------#
import math
r=6371*1000
s=4*math.pi*r**2  #表面积
v=4*math.pi*r**3/3   #体积
l=2*math.pi*r   #周长
kx=1/(math.pi*2)  #空隙
print(f'地球表面积为{s:.2f}平方米')
print(f'地球体积为{v:.2f}立方米')
print(f'地球赤道周长为{l:.2f}米')
print(f'空隙大小为{kx:.2f}米')
if kx>0.1:   #错误类型if kx>10，没有进行单位换算,且少了冒号
 print('老鼠可以从空隙中钻过')
else:   #少了冒号
 print(' 老鼠无法通过空隙')

#'''
'''''#-------------------------------#

import math
r=6371*1000
s=4*math.pi*r**2  #表面积
v=4*math.pi*r**3/3   #体积
l=2*math.pi*r   #周长
kx=1/(math.pi*2)  #空隙
print(f'地球表面积为{s:.2f}平方米')
print(f'{地球体积为{v:.2f}立方米}')
print(f'{地球赤道周长为{l:.2f}米}')
print(f'{空隙大小为{kx:.2f}米}')
if kx>0.1:   #错误类型if kx>10，没有进行单位换算,且少了冒号
 print('老鼠可以从空隙中钻过')
else:   #少了冒号
 print(' 老鼠无法通过空隙')
#'''
'''''#-------------------------------#
import string
import random
sd=int(input())
n=int(input())

random.seed(sd)
tab=[x for x in string.ascii_uppercase if x not in 'IO']
dig=list(range(2,10))
li=[]
for i in range(n):
    ct=random.randint(0,2)
    m=random.choices(tab,k=ct)+random.choices(string.digits,k=5-ct)
    random.shuffle(m)
    a=random.choice(('鄂A-','鄂W-'))+''.join(m)
    li+=[a]
print(li)

#'''
'''#-------------------------------#
import random
a,b=map(int,input().split(','))
random.seed(b)
ct=0
c=a
while c>0:
    d=random.randint(0,a//10)
    c-=d
    ct+=1
print (ct)

#'''
'''''#-------------------------------#
def prm(n):
    if n<=2:
        return n==2
    if n>2:
        if n%2==0:
            return 0
        sn=math.floor(n**0.5)
        for i in range(3,sn+1,2):
            if n%i==0:
                return 0
        return 1

a=int(input())
sm=[]
ct=0
i=5
if a%2==0:
    a-=1

while ct<10:
    if prm(a):
        ct+=1
        sm+=[a]
    a-=2


for i in sm[:0:-1]:
    print(f'{i}+',end='')
print(f'{sm[0]}={sum(sm)}')

#'''
'''''#-------------------------------#
a=list(map(int,input().split()))
b=a.pop(len(a)-1)
c=[x for x in a if x%b==0]
if len(c)==0:
    print('None')
    exit()
print(f'和：{sum(c)}')
print(f'最大值：{max(c)}')
#'''
'''''#-------------------------------#
t=['.-', '-...', '-.-.', '-..', '.', '..-.', '--.', '....', '..', '.---', '-.-', '.-..', '--', '-.', '---', '.--.', '--.-', '.-.', '...', '-', '..-', '...-', '.--', '-..-', '-.--', '--..']
di={c:t[i] for i,c in enumerate(string.ascii_uppercase)}
a=input().upper()
b=''.join(di.get(d,d)for d in a)
print(b)
#'''
'''''#-------------------------------#
c=list(map(int,input().split()))
d=int(input())
if c.count(d)!=0:
    print('Fail')
    print(c)
    exit()
c+=[d]
c.sort()
e=c.index(d)
print(e)
print(c)

#'''
'''''#-------------------------------#
st=['08:00','08:50','09:55','10:45','11:35','14:00','14:50','15:40','16:45','17:35','19:00','19:50','20:40']
a=input()
min=int(a[0:2])*60+int(a[3:5])
for ct,i in enumerate(st):
    m=int(i[0:2])*60+int(i[3:5])
    if m<=min<=m+45:
        print(f'第{ct+1}节课')
        break
else:
    print('休息')

#'''
'''#-------------------------------#
import randA
s = int(input())
price = randA.randA(s)
#上述代码不允许修改，否则无法通过评测
#价格price为股票价格，数据类型为float
S_amount=float(input())
ns=int(S_amount/(price*100*1.001))
print(list(range(100,(ns+1)*100,100)))
if ns==0:
    print(f'资金不够，至少需要{(price*100*1.001):.02f}元。')
else:
    print(f'使用{price*100*1.001*ns:.02f}买入{ns*100}股，账户余额为{(S_amount-price*100*1.001*ns):.02f}元。')
#'''
''''#-------------------------------#
a=int(input())
d=[]
while a>0:
    b=input().split()
    b[0]=b[0][0:4]+'*******'+b[0][11:]
    b[1]=b[1][0]+'*'+b[1][2:]
    b[2]=b[2][0:3]+'****'+b[2][7:]
    d+=[b]
    a-=1
print(d)

#'''
'''''#-------------------------------#
b=[]
while (a:=input())!='':
    b+=[a]
print(b)
b.sort(key=lambda x:x[0:4])
print(b)
#'''
''''#-------------------------------#
a=eval(input())
a.sort(key=lambda x:(abs(x),x),reverse=1)

print(*a,sep=',')

#'''
''''#-------------------------------#
li=list(map(int,input().split()))
l1,l2=[],[]
l1=[x for x in li if x%2==1]
l2=[x for x in li if x%2==0]
if len(l1)!=len(l2):
    print('ERROR')
else:
    l1.sort()
    l2.sort()
    li[::2]=l2
    li[1::2]=l1
print(li)
#'''
'''#-------------------------------#
import string


def Read_report(name):  # 本函数已定义完整
    # 读取报告原文，返回字符串，本函数勿修改。
    with open(name, 'r', encoding='UTF-8') as f:
        return f.read()


# 下方为待完成区域
def Short(s):
    for i in s:
        if i.isdigit():
            return 1
    return 0



# 定义函数，判断字符串s中是否包含数字字符


import string


def Read_report(name):  # 本函数已定义完整
    # 读取报告原文，返回字符串，本函数勿修改。
    with open(name, 'r', encoding='UTF-8') as f:
        return f.read()


# 下方为待完成区域
def Short(s):
    for i in s:
        if i.isdigit():
            return 1
    return 0



# 定义函数，判断字符串s中是否包含数字字符


def Sign_delete(s):
    # 定义函数，将报告字符串中的所有中文标点符号替换成英文空格，以便后续分割列表。
    sign = ['＂', '＃', '＄', '％', '＆', '＇', '（', '）', '＊', '＋', '，', '－', '／', '：', '；', '＜', '＝', '＞', '＠', '［', '＼',
            '］', '＾', '＿', '｀', '｛', '｜', '｝', '～', '｟', '｠', '｢', '｣', '､', '\u3000', '、', '〃', '〈', '〉', '《', '》',
            '「', '」', '『', '』', '【', '】', '〔', '〕', '〖', '〗', '〘', '〙', '〚', '〛', '〜', '〝', '〞', '〟', '〰', '〾', '〿',
            '–', '—', '‘', '’', '‛', '“', '”', '„', '‟', '…', '‧', '﹏', '﹑', '﹔', '·', '．', '！', '？', '｡', '。']
    before=''.join(sign)
    after=' ' * len(before)
    tab=''.maketrans(before, after)
    s=s.translate(tab)
    # print(s)
    return s
    # 继续完成函数定义


name = 'step8/2024政府工作报告.txt'
report = Read_report(name)  # 读取报告文件

report = Sign_delete(report)  # 替换报告中符号，以便后续分隔
# report=report.split()
# print(report)
key = input()  # 输入关键词
# 下方继续后续流码程设计
flag=0
if key=='数字短句':
    report=report.split()
    for i in report:
        if Short(i):
            print(i)
else:
    if report.count(key):
        print(report.count(key))
        report=report.split()
        for i in report:
            if key in i:
                print(i)
    else:
        print('未找到关键词')







#'''
'''#-------------------------------#
a=input().split()
mn=len(min(a,key=len))
i=0
for i in range(mn):
    if len(set(x[i] for x in a))==1:
        i+=1
    else:
        break
print(a[0][:i] if i!=0 else 'NOT FOUND')

#'''
'''''#-------------------------------#
b=list(map(int,input().split()))
c=set(b)
a=[x for x in c if b.count(x)>1]
print(a)

#'''
''''#-------------------------------#
def fopen():
    ''本函数不允许修改，功能说明：
    fopen()读取文件并返回二维列表l,数据格式为：
    [['Rank', 'Name', 'Pay', 'Salary/Winnings', 'Endorsements', 'Sport', 'Year'],
     ['1', 'Lionel Messi', '$127 M', '$92 M', '$35 M', 'Soccer', '2019']
     ['2', 'Cristiano Ronaldo', '$109 M', '$65 M', '$44 M', 'Soccer', '2019'], ...]
    l=[]
    with open('2012-19sport.csv','r',encoding='UTF-8') as f:
        for i in f.readlines():
            l.append(i.strip().strip('#').split(','))
    return l
a=input()
l=fopen()
b=set()
for i in l:
    if i[-1]==a:
        b.add(i[-2])

if len(b)==0:
    print(f'No Record of {a}')
    exit()
c=list(b)
c.sort()
for n,i in enumerate(c):
    print(f'{n+1} {i}')

#'''
'''#-------------------------------#
a=input().split(',')
c={x:0 for x in a}
d=list(c)
print(d)


#'''
'''''#-------------------------------#

i=1
while 1:
    a=str(i**3)
    b=str(i**4)
    if len(a)==4 and len(b)==6:
        if len(set(a+b))==10:
            print(i)
            break
    else:
        i+=1


#'''
'''#-------------------------------#
a=int(input())
mst=set(input().split())
while a:
    s=input().split()
    if s[0]=='print':
        b=list(mst)
        b.sort()
        print(b)
    elif s[0]=='add':
        b=set(s[1:])
        mst|=b
    elif s[0]=='del':
        b=set(s[1:])
        mst-=b
    elif s[0]=='update':
        b=set(s[1:])
        mst|=b
    elif s[0]=='clear':
        mst.clear()
    a-=1

#'''
'''#-------------------------------#


def average(array):
    s = set()
    for i in array:
        s |= {i}
    a = round(sum(s) / len(s),3)
    return a
    # 你的代码写在这里


if __name__ == '__main__':
    arr = list(map(int, input().split()))
    result = average(arr)
    print(result)

#'''
''''#-------------------------------#
tab={'A':4.0,'A-':3.7,'B+':3.3,'B':3.0	,'B-':2.7,'C+':2.3,'C':2.0,'C-':1.5,'D':1.3,'D-':1.0,'F':0}
s1=0
s2=0
while (a:=input())!='-1':
    b=int(input())
    s1+=tab[a]*b
    s2+=b
print(f'{s1/s2:.2f}')

#'''
'''''#-------------------------------#
dict1 = {'赵小明': '13299887777', '特明朗': '814666888', '普希京': '522888666', '吴小京': '13999887777'}
a=input()
b=input()
if a in dict1:
    print('您输入的姓名在通讯录中已存在')
else:
    dict1[a]=b
    for x in dict1:
        print(f'{x}:{dict1[x]}')

#'''
'''#-------------------------------#
capitals = {'湖南': '长沙', '湖北': '武汉', '广东': '广州', '广西': '南宁', '河北': '石家庄', '河南': '郑州',
            '山东': '济南', '山西': '太原', '江苏': '南京', '浙江': '杭州', '江西': '南昌', '黑龙江': '哈尔滨',
            '新疆': '乌鲁木齐', '云南': '昆明', '贵州': '贵阳', '福建': '福州', '吉林': '长春', '安徽': '合肥',
            '四川': '成都', '西藏': '拉萨', '宁夏': '银川', '辽宁': '沈阳', '青海': '西宁', '海南': '海口',
            '甘肃': '兰州', '陕西': '西安', '内蒙古': '呼和浩特', '台湾': '台北', '北京': '北京', '上海': '上海',
            '天津': '天津', '重庆': '重庆', '香港': '香港', '澳门': '澳门'}
while a:=input():
    c=capitals.get(a,"输入错误")
    print(c)


#'''
''''#-------------------------------#
dicts = {}
with open('step15/dicts.txt', 'r', encoding='utf-8') as data:
    for x in data:
        word,trans = x.strip().split(maxsplit=1)
        dicts[word]=trans
# 上述代码构造字典dicts
a=input().lower()
a.replace("n't"," not")
a.replace("'s",'is')

tab=''.maketrans(string.punctuation,' '*len(string.punctuation))
a=a.translate(tab)
a=a.split()
for i in a:
    c=dicts.get(i,'自己猜')
    print(f'{i} {c}')



#'''
'''#-------------------------------#
a=int(input())
b=input().split(',')
c=input().split(',')
d=dict(zip(b,c))
while a:
    e=input().split()
    if e[0]=='key':
        print(list(d.keys()))
    elif e[0]=='value':
        print(list(d.values()))
    elif e[0]=='print':
        print(d)
    elif e[0]=='clear':
        d.clear()
    elif e[0]=='add' or e[0]=='update':
        d[e[1]]=e[2]
    elif e[0]=='del':
        if e[1] in d:
            d.pop(e[1])
        else:
            print("键不存在")



    a-=1

#'''
''''#-------------------------------#
def fopen(name):
    with open(name, 'r', encoding  = 'utf-8') as f:
        f.readline()
        return [i.strip().split(',') for i in f.readlines()]

ls = fopen('menu.csv')
# 以上模板不允许修改
dic={}
for c,i in enumerate(ls):
    dic[c+1]=[i[0],i[1]]
print(dic)
a=input()
if a.isdigit():
    if int(a) in dic:
        print(*dic[int(a)])
        exit()
for i in dic:
    ct=0
    if a in dic[i][0]:
        print(f'{i} : ',end='')
        print(*dic[i])
        ct+=1

if ct==0:
    print(f'{a} Not Found')
else:
    print(ct)


#'''
'''#-------------------------------#
def fopen(name):
    with open(name, 'r', encoding  = 'utf-8') as f:
        return f.read()

s = fopen('12.txt')
### 以上模板不允许修改，文件中数据被读取为字符串 s
s=s.lower()
tab=''.maketrans(string.punctuation,len(string.punctuation)*' ')
s=s.translate(tab)
s=s.split()
key=input()
b={}
for i in s:
    b[i]=b.get(i,0)+1
c=sorted(b.items(),key=lambda x:x[1],reverse=True)
if key=='count_1':

    for n,i in enumerate(c):
        if n==30:
            break
        print(*i)
elif key=='count_2':
    ct=0
    for i in c:
        if len(i[0])>=2:
            print(*i)
            ct+=1
        if ct==30:
            break
elif key=='count_3':
    ex = ['that', 'with', 'said', 'have', 'which', 'this', 'your', 'will', 'from', 'what', 'then', 'count', 'they',
          'were', 'would', 'when', 'well', 'there', 'know', 'more', 'young', 'them', 'only', 'madame', 'replied',
          'time', 'their', 'some', 'like', 'very', 'father', 'into', 'could', 'should', 'than', 'shall', 'been']
    ct = 0
    for i in c:
        if len(i[0]) >= 4 and i[0] not in ex:
            print(*i)
            ct += 1
        if ct == 7:
            break
else:
    print('Error')















#'''
''''#-------------------------------#
d={'I':1, 'V':5 ,'X':10, 'L':50, 'C':100, 'D':500, 'M':1000}
print(d)
a=input()
sm=0
pre='I'
for i in a[::-1]:
    if d[i]>=d[pre]:
        sm+=d[i]
    else:
        sm-=d[i]
    pre=i
print(sm)

#'''
'''''#-------------------------------#
import jieba
import logging

jieba.setLogLevel(logging.INFO)
with open('step1/comment.csv', 'r', encoding='GBK') as f:
    ls = [i.strip().split(',', maxsplit=1) for i in f.readlines()[1:]]
# print(ls[0])
a=input()

g = []
w=[]
for i in ls:
    if i[0]=='1':
        g+=[i]
    elif i[0]=='0':
        w+=[i]
# print(g)
# print(w)
ex=['不错','比较','可以','感觉','没有', '我们','就是','还是','非常','但是', '不过','有点','一个','一般','下次', '携程','不是','晚上','而且','他们', '什么','不好','时候','知道','这样', '这个','还有','总体','位置','客人', '因为','如果','这里','很多','选择', '居然','不能','实在','不会','这家', '结果','发现','竟然','已经','自己', '问题','不要','地方','只有','第二天', '酒店','房间','虽然']

if a=='总评':

    print(f'总评论: {len(g)+len(w)}')
    print(f'好评: {len(g)}')
    print(f'差评: {len(w)}')
elif a=='平均':
    sm=0
    n=0
    for n,i in enumerate(ls):
        sm+=len(i[1])
    print(f'{(sm/(n+1)):.0f}')

elif a=='好评':
    b={}
    for i in g:
        c=jieba.lcut(i[1])
        for j in c:
            b[j]=b.get(j,0)+1
    # print(b.items())
    b=sorted(b.items(),key=lambda x:x[1],reverse=True)
    ct=0
    for i in b:
        if len(i[0])>1 and i[0] not in ex and not i[0].isdigit():
            print(*i,sep=': ')
            ct+=1
        if ct==15:
            break
elif a=='差评':
    b={}
    for i in w:
        c=jieba.lcut(i[1])
        for j in c:
            b[j]=b.get(j,0)+1
    # print(b.items())
    b=sorted(b.items(),key=lambda x:x[1],reverse=True)
    ct=0
    for i in b:
        if len(i[0])>1 and i[0] not in ex and not i[0].isdigit():
            print(*i,sep=': ')
            ct+=1
        if ct==15:
            break
else:
    print('无数据')





#'''
'''''#-------------------------------#
print('|++++++++++++++++++++++|
|                      |
|   Welcome to WHUT    |
|                      |
|++++++++++++++++++++++|')

#'''
''''#-------------------------------#
a=int(input())
sm=1
f=0
c=1
a-=2
n=0
while a:
    c+=f
    f=n
    n=c
    sm+=n
    a-=1
    print(sm)

#'''
'''#-------------------------------#
def su(a):
    sa=int(a**0.5)
    for i in range(3,sa+1,2):
        if a%i==0:
            return 0
    return 1


a,b=map(int,input().split())
ct=0
sm=0
if a<=2:
    ct+=1
    sm+=2
    a=3
if a%2==0:
    a+=1
for i in range(a,b+1,2):
    if su(i):
        ct+=1
        sm+=i
print(f"{ct} {sm}")

#'''
''''#-------------------------------#
n=int(input())
ct=n//90
n=n%90
ct*=3
if n>=63:
    ct+=3
elif n>=36:
    ct+=2
elif n>=9:
    ct+=1

print(ct)




#'''
'''#-------------------------------#
i,j,k=map(int,input().split())
ewp = 5 * i
ewr = ewp - j
pd = 0
w = (k - ewp) // ewr
if (k - ewp) % ewr != 0:
    w +=1
k = k - w * ewr
d = k // i
if k % i != 0:
    d +=1

print(f"{w+1} {d}")

#'''
'''#-------------------------------#
import string
n=int(input())
a=[]
with open('The Old Man and the Sea.txt','r',encoding  = 'utf-8') as f:
    ct=0
    for line in f:
        a+=list(line.strip().lower())
        ct+=1
        if ct==n:
            break
d={x:a.count(x) for x in string.ascii_lowercase}
b=sorted(d.items(),key=lambda x:x[1],reverse=True)
for i in b:
    print(f'{i[0]} 的数量是 {i[1]} 个')







#'''
'''#-------------------------------#
with open('The Great Learning.txt','r',encoding='utf-8') as f:

#'''
'''#-------------------------------#
n=int(input())
a=[]
ct=0
with open('step3/The Great Learning.txt','r',encoding  = 'utf-8') as f:
    for line in f:
        a+=list(line)
        ct+=1
        if ct==n:
            break
b={x for x in a}

print(f'{len(a)} {len(b)}')

#'''
''''#-------------------------------#
a=input()

with open('university.csv','r',encoding='utf-8') as f:
    l=f.readlines()
for i in l:
    if a in i:
        print('序号,学校名称,学校标识码,主管部门,所在地,办学层次,备注')
        print(i.strip())
        break




#'''
''''#-------------------------------#
a=input()
b=[]
with open('university.csv','r',encoding='utf-8') as f:
    f.readline()
    for line in f:
        b+=[line.split(',')[1]]


for i in b:
    if a in i:
        print(i)

#'''
''''#-------------------------------#
a=int(input())
b=[]
with open('score1034.json','r',encoding='utf-8') as f:
    l1=json.load(f)
l2=[list(l1[0].keys())]
for e in l1:
    l2+=[list(e.values())]
print(l2[:a])

#'''
'''#-------------------------------#
li=[]
with open('成绩单.csv', 'r', encoding='utf-8') as f:
    for line in f:
        li+=[line.strip().split(',')]

li=sorted(li,key=lambda x:int(x[-1]))
n=int(input())
print(li[:n])
print(li[-n:])

ns=len(li)
l=[]
for i in range(3,3+6):
   l+=[round(sum(int(x[i]) for x in li)/ns,2)]
print(l)



#'''
'''''#-------------------------------#
li=[]
with open('CBOOK.csv','r',encoding='GBK') as f:
    f.readline()
    for line in f:
        li+=[line.strip().split(',')]
a=input()
if a=='record':
    print(len(li))
elif a=='rank':
    b=(input())
    for i in li:
        if i[0]==b:
            for j in i:
                print(j)
            break
elif a=='maxcomment':
    li.sort(key=lambda x:int(x[-2][:-3]),reverse=True)
    for nm,i in enumerate(li):
        print(i[1]+' '+i[-2])
        if nm==9:
            break
elif a=='maxname':
    b=int(input())
    li.sort(key=lambda x: len(x[1]), reverse=True)
    for nm, i in enumerate(li):
        print(i[1])
        if nm == b-1:
            break
else:
    print('无数据')




#'''
'''#-------------------------------#
n=input()
li=[]
with open('step9/admit2.csv','r',encoding='utf-8') as f:
    f.readline()
    for line in f:
        li+=[line.strip().split(',')]
if n=='1':
    l1=[]
    ct=0
    for i in li:
        if eval(i[-1])>=0.8:
            l1+=[i]
            if eval(i[1])>=4:
                ct+=1
    print(f'Top University in >=80%:{100*ct/len(l1):.2f}%')
elif n=='Research':
    l1 = []
    l2=[]
    c1 = 0
    c2=0
    for i in li:
        if eval(i[-1]) >= 0.9:
            l1 += [i]
            if i[5]=='1':
                c1 += 1
        elif eval(i[-1]) <= 0.7:
            l2 += [i]
            if i[5]=='1':
                c2 += 1
    print(f'Research in >=90%:{100 * c1 / len(l1):.2f}%')
    print(f'Research in <=70%:{100 * c2 / len(l2):.2f}%')
elif n=='2':
    l1 = []
    for i in li:
        if eval(i[-1]) >= 0.8:
            l1 += [eval(i[3])]
    print(f'TOEFL Average Score:{sum(l1)/len(l1):.2f}')
    print(f'TOEFL Max Score:{max(l1):.2f}')
    print(f'TOEFL Min Score:{min(l1):.2f}')
elif n=='3':
    l1 = []
    for i in li:
        if eval(i[-1]) >= 0.8:
            l1 += [eval(i[4])]
    print(f'CGPA Average Score:{sum(l1)/len(l1):.3f}')
    print(f'CGPA Max Score:{max(l1):.3f}')
    print(f'CGPA Min Score:{min(l1):.3f}')
else:
    print('ERROR')

# print(li)

#'''
''''#-------------------------------#
l1=[]
a=set()
with open('wuhan2021s1.csv','r',encoding='UTF-8') as f:
    f.readline()
    for line in f:
        l1+=[line.strip().split(',')]
        a|={line.strip().split(',')[1]}
# print(a)
n=input()


if n=='规模升序':
    l1.sort(key=lambda x:eval(x[-1]))
    for i in l1:
        print(*i)
elif n=='规模降序':
    l1.sort(key=lambda x:eval(x[-1]),reverse=True)
    for i in l1:
        print(*i)
elif n in a:
    for i in l1:
        if n==i[1]:
            print(*i)
elif n=='总规模':
    sm=sum(eval(x[-1]) for x in l1)
    print(f'{sm:.2f}平方米')
else:
    print('错误输入')
# print(l1)

#'''
'''''#-------------------------------#
li=[]
di=set()
with open('2019Charity.csv','r',encoding='utf-8') as f:
    f.readline()
    for line in f:
        li+=[line.strip().split(',')]
        di|={line.strip().split(',')[-3]}
# print(di)
a=input().capitalize()
if a=='Total':
    print(f'Total:{sum(int(x[-1]) for x in li)}万元')
elif a.isdigit() and int(a) in range(1,101):
    for i in li:
        if a==i[0]:
            print(*i)
elif a in di:
    for i in li:
        if a==i[-3]:
            print(*i[0:4])
else:
    print('No Record')



#'''
''''#-------------------------------#
li=[]
with open('2012-19sport .csv','r',encoding='utf-8') as f:
   f.readline()
   for line in f:
        li+=[line.strip().split(',')]
a=input().lower()
if a.isdigit() and 2011<int(a)<2020:
    b=int(input())
    for i in li:
        if i[-1]==a:
            if not i[0][0].isdigit():
                i[0]=i[0][1:]
            print(*i,sep=' | ')
            b-=1
            if b==0:
                break
elif a=='sport':
    s=set()
    b=input()
    for i in li:
        if b==i[-1]:
            s|={i[-2]}
    l1=[*s]
    l1.sort()
    for n,i in enumerate(l1):
        print(f'{n+1}: {i}')
    k=int(input())
    sm=0
    for i in li:
        if b==i[-1]:
            i[0] = i[0][1:]
            if l1[k-1]==i[-2]:
                sm+=eval(i[2][1:-1])
                print(*i,sep=' | ')
    print(f'TOTAL: ${sm:.2f} M')
else:
    print('Wrong Input')
#'''
''''#-------------------------------#
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif']=['SimSun']
plt.rcParams['axes.unicode_minus']=False
with open('某月温度.txt',encoding='utf-8') as f:
  lt=[[*map(int,line.split())] for line in f]
l2=[*zip(*lt)]                                    # l2可谓lt的（行列）转置矩阵
plt.plot(l2[0],l2[2],'b*-')
plt.plot(l2[0],l2[1],'ro-')
plt.title('9月温度曲线图')
plt.xticks(range(1,32))
plt.yticks(range(-10,30,5))
plt.axhline(0,ls='--',lw=1,c='b')
# plt.savefig("output/temp_curve.png")
plt.show()

#'''
'''''#-------------------------------#
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['Fangsong']
plt.rcParams['axes.unicode_minus'] = False

with open('9.1 某月温度.txt', 'r',encoding = 'UTF-8') as temp:
      ls = [x.strip().split() for x in temp.readlines()]
print(ls)

#'''
'''''#-------------------------------#
plt.rcParams['font.sans-serif']=['SimSun']        # 设置中文字体
plt.rcParams['axes.unicode_minus']=False          # 解决保存图像是负号'-'显示为方块的问题
with open('9.1 某月温度.txt',encoding='utf-8') as f:
  lt=[line.split() for line in f]                 # 也可[[*map(int,line.split())] for...]，可省下面的转换
x=[int(e[0]) for e in lt]                         # 无须line.strip()，空白字符转int时会自动无视
high=[int(e[1]) for e in lt]
low=[int(e[2]) for e in lt]
plt.plot(x,low,'b*-')                             # 或plt.plot(x,low,marker='*',color='blue')
plt.plot(x,high,'ro-')                            # 或plt.plot(x,high,marker='o',color='red')
plt.title('9月温度曲线图')                        # 不必再设fontproperties='Fangsong'
plt.xticks(range(1,32))                           # 设置x,y的刻度必须在plot之后
plt.yticks(range(-10,30,5))
plt.axhline(0,ls='--',lw=1,c='b')                 # 或linestyle='--',linewidth=1,color='blue'
plt.savefig("temp_curve.png")
plt.show()

#'''
'''''#-------------------------------#
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimSun']
plt.rcParams['axes.unicode_minus'] = False
with open('9.1 某月温度.txt',encoding='utf-8')as f:
  l1=list([*map(int,x.split())] for x in f)
l2=[*zip(*l1)]
plt.plot(l2[0],l2[1],'ro-')
plt.plot(l2[0],l2[2],'b*-')
plt.xticks(range(1,32))
plt.yticks(range(-10,26,5))
plt.axhline(0,ls='--',lw=1,c='b')

plt.show()
#'''
''''#-------------------------------#
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimSun']
plt.rcParams['axes.unicode_minus'] = False
with open('9.1 某月温度.txt',encoding='utf-8')as f:
  l1=[[*map(int,x.split())] for x in f]
l2=[*zip(*l1)]
plt.plot(l2[0],l2[1],'ro-')
plt.plot(l2[0],l2[2],'b*-')
plt.xticks(range(1,32))
plt.yticks(range(-10,26,5))
plt.axhline(c='b',ls='--')
plt.title('9.1 某月温度')
plt.show()
# plt.savefig('temp_curve.png')
#'''
''''#-------------------------------#
plt.rcParams['font.sans-serif'] = ['Fangsong']
plt.rcParams['axes.unicode_minus'] = False
with open('DosOfBaTiO3.txt', 'r',encoding = 'UTF-8') as f:
    l1=[[*map(eval,line.split())] for line in f]
l2=[*zip(*l1)]
plt.plot(l2[0],l2[1],'r-',lw=1)
plt.xlabel('Energy(Ha)')
plt.ylabel('EDensity of States(electrons/Ha)')
plt.savefig("output/exam.png")
plt.show()

#'''
'''#-------------------------------#
plt.rcParams['font.sans-serif'] = ['SimSun']
plt.rcParams['axes.unicode_minus']=False

with open('XRD_AFOtxt.txt') as f:
    l1 = [[*map(eval, line.split())] for line in f]
l2 = [*zip(*l1)]
plt.plot(l2[0],l2[1],'r-',lw=1)
plt.axhline(0,c='b',ls='-',lw=1)

plt.title('X射线衍射图谱')
plt.xlabel('Position(2-Theta)')
plt.ylabel('Intensity')
plt.show()


#'''
''#-------------------------------#
a=eval(input())
b=eval(input())
c=input()
if c=='女':
    print(f'{((a*0.923+b)//2):.0f}')
elif c=='男':
    print(f'{((a+b)*1.08//2):.0f}')
else:
    print('无对应公式')

#'''
'''#-------------------------------#
import json
a=int(input())
b=[]
with open('score1034.json','r',encoding='utf-8') as f:
    l1=json.load(f)
l2=[list(l1[0].keys())]
for e in l1:
    l2+=[list(e.values())]
print(l2[:a])

#'''





























